package conson.tech.manage.coupons.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * InterfaceName: UserCouponListDto
 * Description: 获取用户我的优惠券入参实体
 * Author: XYF
 * Date: 2020/7/25 11:15
 * Version: 1.0
 */
@Data
public class ConfigDto {


    /**
     * 限时抢配置id或领券配置id
     */
    @ApiModelProperty(value = "限时抢配置id或领券配置id")
    @NotNull(message = "限时抢配置id或领券配置id不能为空")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

}
